﻿package plugin.goddess.handler
{
    import cmd.*;
    import com.core.*;
    import flash.utils.*;
    import pluginfw.nio.*;
    import pluginfw.nio.imsg.*;

    public class GoddessHandler extends Object implements IGroupHandler
    {

        public function GoddessHandler()
        {
            return;
        }// end function

        public function dealSimpleMessage(param1:ISimpleMessage) : void
        {
            return;
        }// end function

        public function dealBufferMessage(param1:IBufferMessage) : void
        {
            var _loc_2:* = new Object();
            var _loc_3:* = new Input(null);
            var _loc_4:* = param1.getBody();
            param1.getBody().position = 0;
            _loc_3.setBytes(_loc_4);
            switch(param1.getCmd())
            {
                case CMDGoddess.Init:
                {
                    _loc_2.mbliquan = _loc_3.readVarInt(false);
                    _loc_2.mbgold = _loc_3.readVarInt(false);
                    ModelProxy.change("goddess", "init", _loc_2);
                    break;
                }
                case CMDGoddess.MoBai:
                {
                    _loc_2.baoji = _loc_3.readVarInt(false);
                    ModelProxy.change("goddess", "MoBai", _loc_2);
                    break;
                }
                default:
                {
                    break;
                }
            }
            return;
        }// end function

        public function dealProxyMessage(param1:IProxyMessage) : void
        {
            return;
        }// end function

    }
}
